<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  	<script src="js/jquery-1.3.2.min.js" language="javascript"></script>
  	<script src="http://192.168.0.116:8080/Jsonp/js/js.js" language="javascript"></script>
	<script language="javascript">
		var xx=function(){
			$.getJSON("http://192.168.0.116:8080/Jsonp/getPluginVer?jsonpcallback=?",function(data){
        		alert("getJSON "+data.version+","+data.code+","+data.msg);
    		});
		}
		var zz=function(){
			$.getJSON("http://192.168.0.116:8080/Jsonp/getCameraInfo?jsonpcallback=?",function(data){
				if(data){
					alert("getJSON "+data.code+","+data.msg+","+data.status+","+data.resolution_x+","+data.resolution_y+","+data.model);
				}else alert("qq");
			});
		}
	</script>
	<script type="text/javascript" >
	var showSubScreenInfo=function(data){
  		alert("index.jsp: "+data.code+","+data.msg+","+data.screenID+","+data.resolution_x+","+data.resolution_y+","+data.ltx+","+data.lty+","+data.rbx+","+data.rby+","+data.model);
  	}
	</script>
  <body>
    This is my JSP page. <br>
    <input type="button" value="getPluginVer" onclick="xx()"/><br>
    <input type="button" value="getCameraInfo" onclick="zz()"/><br>
    <input type="button" value="getSubScreenInfo" onclick="getSubScreenInfo()"/><br>
    <input type="button" value="getIDCardEquipInfo" onclick="getIDCardEquipInfo()"/>
    <br>
    <input type="button" value="setCamera" onclick="SetCamera('x','y','s','q','f')"/>
    <br>
    <input type="button" value="setHandSign" onclick="SetHandSign('s','f','p')"/><br>
  </body>
</html>
